package entity;

import java.util.Date;

public class ClockInRecord {
    private Integer id;
    private String studentId;
    private String studentName;  // 新增学生姓名
    private String roomNumber;   // 新增房间号
    private String phone;
    private Date clockTime;
    private Integer status;      // 新增状态：1-正常，0-异常


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    // 构造方法
    public ClockInRecord() {}

    public ClockInRecord(String studentId, Date clockTime) {
        this.studentId = studentId;
        this.clockTime = clockTime;
        this.status = 1; // 默认设置为正常状态
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public Date getClockTime() {
        return clockTime;
    }

    public void setClockTime(Date clockTime) {
        this.clockTime = clockTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
